import { defineStore } from 'pinia'

interface IMenu {
  id: number
  label: string
  icon: string
  path: string
}

export const useOptions = defineStore<'options', { menuList: IMenu[] }>('options', {
  state: () => ({
    menuList: [
      {
        id: 1,
        label: '首页',
        icon: 'icon-home-fill',
        path: '/recommed'
      },
      {
        id: 2,
        label: '云音乐精选',
        icon: 'icon-headphone-fill',
        path: '/choice'
      }
    ]
  })
})
